package com.tuanzi.loan.web.lazy.settlementsystem;

import com.tuanzi.loan.business.service.settlementsystem.SettlementRemainService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.settlementsystem.SettlementRemainRequest;
import com.tuanzi.loan.vo.response.settlementsystem.SettlementRemainResponse;
import org.springframework.data.domain.Page;

/**
 * @author caiwanlin
 * @create 2018-08-20 14:07
 */
public class SettlementRemainLazyDataModel extends BaseLazyDataModel<SettlementRemainRequest,SettlementRemainResponse> {
    private SettlementRemainService settlementRemainService = SpringContextHolder.getBean(SettlementRemainService.class);
    public SettlementRemainLazyDataModel(SettlementRemainRequest settlementRemainRequest) {
        super(settlementRemainRequest);
    }
    @Override
    protected Page<SettlementRemainResponse> doLoad(PageSearcher<SettlementRemainRequest> pageSearcher) {
        return settlementRemainService.list(pageSearcher);
    }
}